Repository navigation
make the benchmark workflow build the PR and run again - #3948
Merged
Merged
Conversation
Signed-off-by: utam0k <k0ma@utam0k.jp>
2 tasks done
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Human security review is needed because the issue_comment workflow runs PR-supplied code as root, and the successful same-repository test does not establish runtime/cache isolation or fork-PR safety.
No open issues 🎉
What changed in this PR
Repairs the execution-time benchmark workflow so it builds the requested PR and compares it with its merge base, replacing the broken dependency setup and default-branch checkout.
Changes:
- Restricts
/benchmarktriggers to owners, members, and collaborators, and limits write permissions to the reporting job. - Builds both revisions and benchmarks with warm caches, piped output, and no
sudoinside the timed commands. - Posts benchmark results or a failure link to the PR.
| File | Description |
|---|---|
.github/workflows/benchmark_execution_time.yml |
Reworks revision resolution, builds, benchmarking, permissions, and PR reporting. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The benchmark workflow has failed since #2012 removed
.github/scripts/dependency.sh. It also never built the PR, becauseactions/checkoutchecks out main onissue_comment. This fixes both and compares the PR with its merge base./benchmarkcomment from an owner, member, or collaborator.sudoin the timed command. The old setup mostly timedsudostarting from a cold cache.Type of Change
Testing
An
issue_commentworkflow runs from the default branch, so I tested this on my fork with a PR that changes no code./benchmarkposted the result (run).!github easy-benchmark, were skipped.The two builds differed by up to 3%, so the report says to treat smaller changes as noise.
Additional Context
AI-assisted.